﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="popupList.ascx.cs" Inherits="Com.Web.coffinegurunaru.manager.banner.popupList" %>
<%@ Import Namespace="Com.Library.DB.Popup" %>
<table cellpadding="0" cellspacing="1" style="background-color:Gray;">
<tr style="background-color:#EEEEEE; height:30px;">
	<td style="width:70px;">SeqNo</td>
	<td style="width:110px;">넓이/높이</td>
	<td style="width:100px;">왼쪽/위로</td>
	<td style="width:110px;">팝업내용</td>
	<td style="width:200px;">이미지/링크</td>
	<td style="width:200px;">HTML</td>
	<td style="width:120px;">쿠키</td>
	<td style="width:120px;">관리자</td>
	<td style="width:100px;">-</td>
</tr>
<% foreach (PopupEntity item in PopupList) {%>
<tr style="background-color:#FFFFFF; text-align:left" data="{'SeqNo':'<%=item.SeqNo %>'}">
	<td style="text-align:center;"><%=item.SeqNo %></td>
	<td>
		Width <input type="text" value="<%=item.Width %>" style="width:40px;" class="m_Width" />px<br />
		Height <input type="text" value="<%=item.Height %>" style="width:40px;" class="m_Height" />px
	
	</td>
	<td>
		X <input type="text" value="<%=item.Left %>" style="width:40px;" class="m_Left" />px<br />
		Y <input type="text" value="<%=item.Top %>" style="width:40px;" class="m_Top" />px
	</td>
	<td>
		<select class="m_PopupType" style="width:100px;"><option value="1" <%=item.PopupType == 1 ? "selected='selected'" : "" %>>Image</option><option value="2" <%=item.PopupType == 2 ? "selected='selected'" : "" %>>HTML</option></select>
	</td>
	<td>
		<input type="text" value="<%=item.ImageURL %>" style="width:110px;" class="m_ImageURL" readonly="readonly" /><input type="button" value="파일선택" class="m_btnImage" /><br />
		<input type="text" value="<%=item.LinkURL %>" style="width:180px;" class="m_LinkURL" />
	</td>
	<td>
		
		<textarea cols="1" rows="1" style="width:200px; height:50px; border-color:Black; border-width:1px" class="m_HTML"><%=item.HTML %></textarea>
	</td>
	<td><select class="m_IsCookie"><option value="1" <%=item.IsCookie == 1 ? "selected='selected'" : "" %>>다시열지않기</option><option value="2" <%=item.IsCookie == 2 ? "selected='selected'" : "" %>>계속열림</option></select></td>
	<td style="text-align:center;"><%=item.ManagerName %></td>
	<td style="text-align:center;">
		<input type="button" value="미리보기" class="m_btnView" /><br />
		<input type="button" value="수정하기" class="m_btnModify" /><br />
		<input type="button" value="삭제하기" class="m_btnRemove" />
	</td>
</tr>
<%} %>
</table>